package com.ymx.darling.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class FloatHandler implements TypeHandler<Float> {
    @Override
    public Float getResult(ResultSet resultSet, int columIndex) throws SQLException {
        return resultSet.getFloat(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, Float value, int index) throws SQLException {
        statement.setFloat(index, value);
    }
}
